﻿{include file="common/header" /}


<div class="layui-fluid">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md12">
      <div class="layui-card">
        <div class="layui-card-header">欢迎 {$admin['adminname']} 回来~ <span id="time"></span></div>
        <div class="layui-card-body">
          <blockquote class="layui-elem-quote">{$xt['webname']}后台管理系统</blockquote>
        </div>
      </div>
    </div>
  </div>
</div>

<script type="text/javascript">
    $(document).ready(function () {
        function showTime() {
            var today = new Date;
            var y = today.getFullYear();
            var M = today.getMonth() + 1;
            var d = today.getDate();
            var w = today.getDay();
            var h = today.getHours();
            var m = today.getMinutes();
            var s = today.getSeconds();
            var week = ['星期天', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
            $("#time").html(y + '年' + M + '月' + d + '日  ' + '&nbsp;' + h + ':' + m + ':' + s + '&nbsp;' + week[w]);
        }
        showTime();                     //先调用下，否则还需一秒后才呈现
        setInterval(showTime, 1000);    //每1秒(1000毫秒)后调用 showTime()
    })
</script>
</body>
</html>